#ifndef QDLGREGISTER_H
#define QDLGREGISTER_H

#include <QDialog>
//add by dimon, 2024-03-16 15:40
#include <QTcpSocket>

namespace Ui {
class qdlgregister;
}

class qdlgregister : public QDialog
{
    Q_OBJECT

public:
    //他explicit qdlgregister(QWidget *parent = nullptr);
    explicit qdlgregister(QString ip, QString port, QWidget *parent = nullptr);
    ~qdlgregister();

    //add by dimon, 2024-03-16 15:40
    quint32 userid;     //返回给登陆窗口
    QString password;    //返回给登陆窗口

private slots:
    void onReadyRead();

    void on_pushbtnRegister_clicked();

private:
    Ui::qdlgregister *ui;

    //add by dimon, 2024-03-16 15:40
    QTcpSocket *tcpSocket;
    QString ip;
    QString port;
};

#endif // QDLGREGISTER_H
